package com.sujiewon.salesadmin.employee.service;

import java.sql.SQLException;
import java.util.HashMap;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.sujiewon.salesadmin.employee.dao.EmployeeDao;

@Service
public class EmployeeServiceImpl implements EmployeeService {

	@Resource(name="employeeDaoImpl")
	EmployeeDao employeeDao;
	
	@Override
	public List<HashMap<String, Object>> getJobInfoList() throws SQLException {
		return this.employeeDao.getJobInfoList();
	}

	@Override
	public List<HashMap<String, Object>> getDeptInfoList() throws SQLException {
		return this.employeeDao.getDeptInfoList();
	}

	@Override
	public HashMap<String, Object> getEmployeeInfoByUserId(HashMap<String, Object> paramMap) throws SQLException {
		return this.employeeDao.getSujiEmpInfoByUserId(paramMap);
	}

	@Override
	public void registerUser(HashMap<String, Object> paramMap) throws SQLException {
		this.employeeDao.insertSujiEmpInfo(paramMap);
	}

	@Override
	public HashMap<String, Object> signin(HashMap<String, Object> paramMap) throws SQLException {
		return this.employeeDao.signin(paramMap);
	}

	@Override
	public void modifyUser(HashMap<String, Object> paramMap) throws SQLException {
		this.employeeDao.updateSujiEmpInfo(paramMap);
	}

}
